package com.acoreful.ackitcloud.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;
import org.springframework.web.client.RestTemplate;

@Data
@Configuration(proxyBeanMethods = false)
public class DemoConfig {




    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }


    @Bean
    public  MethodValidationPostProcessor methodValidationPostProcessor(){
        return new MethodValidationPostProcessor();
    }


}
